<template>
  <div>
    <h3>列表如下...id是{{ id }},name是{{ name }}</h3>
  </div>
</template>

<script>
export default {
  name: "Item",
  data() {
    return {
      id: -1,
      name: "",
    };
  },
  mounted() {
    console.log(this, "item");
    const { id, name } = this.$route.query;
    this.id = id;
    this.name = name;
  },
};
</script>

<style>
</style>